﻿

namespace Admin.NET.Core.Btms;
[Tenant("Btms2")]   //"ConfigId"一致
[SugarTable("InvStockInBillDetail", "血库2入库子表")]
public class InvStockInBillDetail
{

    // 创建时间，默认当前时间
    public DateTime? CreationTime { get; set; }
    // 创建用户ID
    public long? CreatorUserId { get; set; }
    // 最后修改时间
    public DateTime? LastModificationTime { get; set; }
    // 最后修改用户ID
    public long? LastModifierUserId { get; set; }
    public bool IsDeleted { get; set; } = false;

    //
    // 摘要:
    //     Which user deleted this entity?
    public long? DeleterUserId { get; set; }

    //
    // 摘要:
    //     Deletion time of this entity.
    public DateTime? DeletionTime { get; set; }
    /// <summary>
    /// 联合主键之一：入库单号
    /// </summary>
    [SugarColumn(IsPrimaryKey = true)]
    public string BillNo { get; set; }
    /// /// <summary>
    /// 联合主键之一：唯一码 血袋条码
    /// </summary>
    [SugarColumn(IsPrimaryKey = true)]

    public string Code { get; set; }
    /// <summary>
    ///自编号 
    /// </summary>
    public string OwnNumber { get; set; }
    /// <summary>
    /// 血液品种Id(此列假的 20230224)
    /// </summary>
    public int BasBloodVarietyId { get; set; }

    /// <summary>
    /// 血液品种名称
    /// </summary>
    public string BasBloodVarietyName { get; set; }

    /// <summary>
    /// 血液产品码Id
    /// </summary>
    public string BasBloodProductId { get; set; }

    /// <summary>
    /// 血液产品名称
    /// </summary>
    public string BasBloodProductName { get; set; }

    /// <summary>
    /// ABO血型
    /// </summary>
    public string ABO { get; set; }

    /// <summary>
    /// RH(D) 取自枚举
    /// </summary>
    public string RhD { get; set; }

    /// <summary>
    /// 容量
    /// </summary>
    public decimal Volume { get; set; }

    /// <summary>
    /// 单位 ml和u 有转换关系
    /// </summary>
    public string Unit { get; set; }

    /// <summary>
    /// 入库价格
    /// </summary>
    public decimal WarehousingPrice { get; set; }

    /// <summary>
    /// 特别处理
    /// </summary>
    public int? SpecialProcessing { get; set; }

    /// <summary>
    /// 有效日期
    /// </summary>
    public DateTime EffectiveDate { get; set; }

    /// <summary>
    /// 采血日期
    /// </summary>
    public DateTime? GatheringDate { get; set; }

    /// <summary>
    /// 制备日期
    /// </summary>
    public DateTime? MakeDate { get; set; }
    /// <summary>
    /// 献血号
    /// </summary>
    public string BloodDonationCode { get; set; }

    /// <summary>
    /// 是否回收
    /// </summary>
    public bool IsRecycle { get; set; }
    /// <summary>
    /// 血袋外观
    /// </summary>
    public int? BloodAppearance { get; set; }
}
